Skip to content

Fixed ByteSize & TimeDuration Tokens and Aggregation Directive #992

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 18 commits into
base: develop
Choose a base branch
from

Conversation

UtRaj
Copy link

@UtRaj UtRaj commented Apr 17, 2025

Changes Made:

  • Added BYTE_SIZE and TIME_DURATION token parsing support to Directives.g4
  • Implemented ByteSize.java and TimeDuration.java under wrangler-api
  • Added new directive: aggregate-stats
  • Modified UsageDefinition and TokenType to support new token types
  • Added unit tests for parsing and aggregation logic

Testing:

  • All tests pass with mvn clean install
  • Verified ByteSizeAndTimeDurationTest and AggregateStatsTest

AI Usage:

  • Assisted with prompt engineering and code structure; prompts logged in prompts.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant